﻿<%@ Page Title="" Language="C#" MasterPageFile="../Examples.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="DotNetSources.Web.UI.Buttons.Examples.Examples._6_Client_side_confirmBox.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contentDescription" runat="server">
    Scenario: <em>Page loading --> display client driven message box</em>. Demonstrated on a simple button.
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentExample" runat="server">

    Result from server: <asp:Label runat="server" ID="lblResult" ForeColor="Red" /><br /><br />

    <asp:Button runat="server" ID="cmdSubmit" Text="This is a simple ASP.NET button with confirmation"
            OnClick="Click_Submit" 
            OnClientClick="javascript: DotNetSources.ConfirmBox.get_instance().Show('This message box was displayed from JavaScript!', 'ctl00$contentExample$cmdSubmit'); return false;" />
    
    <br />
    <br />
    <strong>Code:</strong><br />
    <div class="code">
    &lt;asp:Button runat="server" ID="Button1" Text="This is a simple ASP.NET button with confirmation"
            OnClick="Click_Submit" 
            OnClientClick="javascript: DotNetSources.ConfirmBox.get_instance().Show('This message box was displayed from JavaScript!', 'ctl00$contentExample$cmdSubmit'); return false;" /&gt;
    </div>
    
</asp:Content>
